#ifndef COMM_MEM_H
#define COMM_MEM_H 1

#define KB 1024
#define MB (KB*KB)
#define MAX_MEM_REGION (32*MB)


unsigned int set_slab_size;

#define MEM_SIZE (set_slab_size*MB)




#define READ_AHEAD_MULTIPLIER 100
#define MIN_REGION (KB/2)
#define READ_AHEAD_REGION(size) ( (size*READ_AHEAD_MULTIPLIER+size) > MAX_MEM_REGION ? MAX_MEM_REGION-size : size*READ_AHEAD_MULTIPLIER)

#endif
